


<p><?php echo $this->Html->link('Add Post', array('action' => 'add')); ?></p>
<table>
    <tr>
        <th>Sent By</th>
        <th>Sent To</th>
        <th>Message</th>

        <th>Created</th>
    </tr>

    <!-- Here's where we loop through our $posts array, printing out post info -->

    <?php foreach ($tasks as $task): ?>
        <tr>
            <td><span style="color:black"><?php echo $task['Task']['sentBy']; ?></td></span>
            <td><span style="color:black"> <?php echo $task['Task']['sentTo']; ?></span></td>
            <td>
                <?php echo $this->Html->link($task['Task']['originalMessage'], array('action' => 'view', $task['Task']['taskID']), array('style' => 'color:black')); ?>
            </td>
            <td>
                <span style="color:black"> <?php echo $task['Task']['taskDate']; ?></span>
            </td>
        </tr>
    <?php endforeach; ?>
</table>